package org.feiye.studyday13;

public class Calcultor {
	// 5:计算器有颜色，品牌，价格等属性，有计算加减乘除以及算一个数立方的方法，用oo的思想模拟。
	public String color;
	public String brand;
	public int price;


	public void show() {
		System.out.println("计算器的品牌：" + brand + ",价格：" + price + ",颜色：" + color);
	}

	public int plus(int a, int b) {
		return a + b;
	}

	public double plus(double a, double b, double c) {
		return a + b + c;
	}

	public double minus(double a, double b) {
		return a - b;
	}

	public double mul(double a, double b) {
		return a * b;
	}

	public double divide(double a, double b) {
		return a / b;
	}

	public double cube(double a) {
		return a * a * a;
	}
}
